package com.lovo.enums;

import lombok.Getter;

/**
 * @title
 * @author: luo
 * @date: 2020/11/22 13:41
 */
@Getter
public enum ClassCodeEnum {

    /**添加班级失败*/
    ADD_CLASS_FAIL(5121,"添加班级失败"),
    /**删除班级失败*/
    FAIL_DELETE_CLASS(5122,"删除班级失败，该班级还有学生"),
    /**修改学生失败*/
    FAIL_UPDATE_CLASS(5123,"修改班级失败"),
    /**查无数据*/
    NO_DATA(5124,"查无数据"),
    /**参数格式错误*/
    PARAMETER_FORMAT_ERROR(5125,"参数格式错误"),
    /**发生未知异常*/
    UNKNOWN_FAIL(9999,"发生未知异常"),
    /**请求方式错误*/
    HTTP_REQUEST_METHOD_NOT_SUPPORTED(5126,"请求方式错误");
    /**状态码*/
    private Integer code;
    /**状态信息*/
    private String msg;


    ClassCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
